package commande.os.android;

import java.util.Properties;

import librairies.liste.interfaces.IListeE;
import IO.properties.PropertiesLoader;

import commande.interfaces.ILien;

/**
 * Gestion des liens sous android. 
 * 
 * @author mlozach
 */
public class LienAndroid implements ILien
{
	private String lienProperties;
	private String lienXml;
	private String lienDico;
	private String slash;
	private String racine;
	
	private Properties prop;
	
	public LienAndroid()
	{
		this.lienProperties = new String("configuration/config/properties/");
		this.lienXml = new String("configuration/config/xml/");
		this.lienDico = new String("configuration/config/xml/dico/");
		this.slash = new String("/");
		this.racine = new String("/");
		
		this.prop = PropertiesLoader.load(lienProperties + "android.properties");
	}
	
	@Override
	public IListeE<String> getRacinePotentielle() 
	{
		//TODO a faire plus tard.
		return null;
	}

	@Override
	public boolean isLien(String lien) 
	{
		//TODO a faire plus tard.
		return false;
	}

	@Override
	public String getValeurOs(String key) 
	{
		if(this.prop == null) return null;
		return this.prop.getProperty(key);
	}
	
	@Override
	public String getLienProperties() {return this.lienProperties;}
	@Override
	public String getLienXml() {return this.lienXml;}
	@Override
	public String getLienDico() {return this.lienDico;}
	@Override
	public String getSlash() {return this.slash;}
	@Override
	public String getRacine() {return this.racine;}
}
